

#import <UIKit/UIKit.h>

@class ImageScrollView;
@class UPaiAppDelegate;
@interface PhotoViewController : UIViewController <UIScrollViewDelegate> {
    UIScrollView *pagingScrollView;
    
    NSMutableSet *recycledPages;
    NSMutableSet *visiblePages;

    // these values are stored off before we start rotation so we adjust our content offset appropriately during rotation
    int           firstVisiblePageIndexBeforeRotation;
    CGFloat       percentScrolledIntoFirstVisiblePage;
	
	
	NSMutableArray * m_imgArray;	//++
	NSUInteger m_curIndex;
}
@property (nonatomic, retain) NSMutableArray * m_imgArray;

- (void)configurePage:(ImageScrollView *)page forIndex:(NSUInteger)index;
- (BOOL)isDisplayingPageForIndex:(NSUInteger)index;

- (CGRect)frameForPagingScrollView;
- (CGRect)frameForPageAtIndex:(NSUInteger)index;
- (CGSize)contentSizeForPagingScrollView;

- (void)tilePages:(NSUInteger)index;
- (ImageScrollView *)dequeueRecycledPage;

- (void)SetImgArray:(NSMutableArray*)imgArray SelectIndex:(NSUInteger)index;

@end

